package org.linlinjava.litemall.admin.web;

import org.linlinjava.litemall.core.core.core.controller.BaseController;
import org.linlinjava.litemall.core.core.core.page.TableDataInfo;
import org.linlinjava.litemall.db.domain.LitemallOrderTotalReturn;
import org.linlinjava.litemall.db.dto.RentPartQueryParam;
import org.linlinjava.litemall.db.service.LitemallOrderTotalReturnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/partRent")
/**
 * 部分归还管理
 */
public class AdminPartRentController extends BaseController {

    @Autowired
    private LitemallOrderTotalReturnService litemallOrderTotalReturnService;

    @RequestMapping("/list")
    public TableDataInfo<LitemallOrderTotalReturn> getList(RentPartQueryParam param){
        startPage();
        return getDataTable(litemallOrderTotalReturnService.selectWithHistories(param));
    }
}
